package com.song.studylineserver.mapper;

import com.song.studylineserver.domain.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author Swtao
* @description 针对表【sl_user(用户信息表)】的数据库操作Mapper
* @createDate 2022-01-14 17:28:38
* @Entity com.song.studylineserver.domain.User
*/
@Mapper
public interface UserMapper extends BaseMapper<User> {
    User getUserByUsername(String username);

    /**
     * 根据条件分页查询用户列表
     *
     * @param sysUser 用户信息
     * @return 用户信息集合信息
     */
    public List<User> selectUserList(User sysUser);


    /**
     * 通过用户ID查询用户
     *
     * @param userId 用户ID
     * @return 用户对象信息
     */
    public User selectUserById(Long userId);
}




